export interface SaveProjectRequestData {
  id?: number
  name: string
  duration: number
  durationHour: number
  status: string
  jiraPrefix: string
  note?: string
  type: string
}

export interface ProjectRequestData {
  /** 当前页码 */
  page: number
  /** 查询条数 */
  size: number
  /**查询参数  */
  name?: string
  /** 查询参数：note */
  status?: string
  jiraPrefix: string
  type?: string
  createId?: number
}

export interface ProjectData {
  createTime?: string
  createName?: string
  id: number
  name: string
  status: string
  jiraPrefix: string
  duration: number
  durationHour: number
  usedTime: number
  usedTimeHour: number
  note: string
  enable: boolean
  type: string
  typeText?: string
}
/** 项目的可选用户 查询参数 */
export interface ProjectUserRequestData {
  projectId: number
  groupId?: number | null
}

/** 新增项目用户 参数 */
export interface ProjectUserInsertData {
  projectId: number
  userIds: number[]
}
export type ProjectResponseData = ApiResponseData<ApiPageInfo<ProjectData>>
